export default {
  namespaced: true,
  state: {
    // 下拉菜单的数据
    buttonloading: false, //导出loading
    exporturl: "", //成功返回得url
    buttonbool: false, //下载按钮得显隐
    route: '',
  },
  getters: {
    /**
     * @description 获取下拉菜单
     * */
  },
  mutations: {
    /**
     * @description 设置下拉菜单数据
     * @param {Object} state vuex state
     * @param {Array} menu menu
     */
    changeLoading(state, data) {
      state.buttonloading = data;
    },
    changebool(state, data) {
      state.buttonbool = data;
    },
    changeUrl(state, data) {
      state.exporturl = data;
    },
    changeroute(state, data) {
      state.route = data;
    },
  },
};
